package sv.gob.mh.dgii.model.pojos.menu;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class SiitMenuItem implements Serializable {

    private final static long serialVersionUID = -5569306689556987L;
    private String id;
    private String name;
    private String url;
    private String icon;
    private List<SiitMenuItem> pages;

    public SiitMenuItem() {
        url = "";
        icon = "./images/iconModule.png";
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param url the url to set
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * @return the pages
     */
    public List<SiitMenuItem> getPages() {
        if (pages == null) {
            pages = new ArrayList<SiitMenuItem>();
        }
        return pages;
    }

    /**
     * @param pages the pages to set
     */
    public void setPages(List<SiitMenuItem> pages) {
        this.pages = pages;
    }

    /**
     * @return the icon
     */
    public String getIcon() {
        return icon;
    }

    /**
     * @param icon the icon to set
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }
}
